package com.foreveross.taskservice.application.task.mq;

import java.util.List;

import com.foreveross.taskservice.common.model.AbstractTaskModel;
/**
 * 从MQ某个队列里面回滚task
 * 可以理解为将task撤销或者回滚节点返回来的task
 * 需要指定目的Destination
 * @author Administrator
 *
 */
public interface IRollbackTaskFromMQApplication {
	
	public AbstractTaskModel roll(javax.jms.Destination destination)throws Exception;
	public List<AbstractTaskModel> rolls(javax.jms.Destination destination,int maxSize)throws Exception;
	
}
